package com.glm.fruit.service;

import com.glm.fruit.entity.CartItem;

import java.util.List;

public class FullReductionPromotion implements Promotion{

    @Override
    public double apply(List<CartItem> items, double total) {
        if (total >= 100) {
            return total - 10;
        }
        return total;
    }
}
